package checklist.entity;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Checklist implements Iterable<Check> {	
	private String id;
	private List<Check> checkList;
	
	public Checklist(String id) {
		this.id = id;
		checkList = new ArrayList<Check>();
	}
	
	public void addCheck(Check check) {
		checkList.add(check);		
	}
	
	public String getId() {		
		return id;		
	}
	
	public Iterator<Check> iterator() {		
		return checkList.iterator();
	}
}
